package zjt.date1;

import java.util.Date;

public class demo1 {
    public static void main(String[] args) {
        Date date = new Date();
        System.out.println(date);
        Date date2 = new Date(1000l);
        System.out.println(date2);
        System.out.println("------------");
        System.out.println(date.before(date2));
        System.out.println(date.after(date2));
    }
}
